<?php
@session_start();
$PurviewLevel=0;

require("../../inc/common.inc.php");
require_once("../Admin_ChkPurview.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<TITLE>铭讯EOS网站后台管理</TITLE>
<Meta name="Keywords" Content="济南网站建设 济南网站制作 山东网站建设 济南铭讯软件有限公司">
<Meta name="Description" Content="济南网站制作：铭讯软件专业服务优秀企业，致力于网站建、设网站推广、网络营销一体的全访位网络服务商">
<link rel="stylesheet" href="../images/style.css" type="text/css">
</head>
<body>
<?php 
require("../mx_head.php");
?>
<div class="right">
<div class="xm2">
<h1 class="fl">用户登陆日志</h1>
</div>
<div class="xm2_b">
<div class="height10"></div>
<table width="100%" border="0" align="center" cellpadding="8" cellspacing="1" class="table_southidc">
  <tr >
    <th width="10%">Id</th>
    <th width="30%">用户名</th>
    <th width="30%">登陆时间</th>
    <th width="30%">登陆IP</th>
  </tr>
  <?PHp
  if(empty($pageindex)){
      $pageindex=1;
  }
  $pagesize=20;
  $str=" and userid='".$_SESSION['mxadmin']['userid']."' ";
  $s="";
  
  
  $table=" mx_members_log  ";
  $order=" order by times desc, id desc";
  $column=" * ";
  $biaoid="id";
  $c=$db->listcount($table,$SQL);
  
  $list=$db->list1($pageindex,$pagesize,$table,$column,$SQL,$order,$biaoid);
  if (!is_array($list)){
  echo "<tr class=\"list1\"><td colspan=4><center>暂无信息</center></td></tr>";
  }
  else{
  for($i=0;$i<count($list);$i++){
  ?>
  <tr class="list" align="center">
    <td><?PHp echo ($pageindex-1)*$pagesize+$i+1;?></td>
    <td><?PHp echo $list[$i]['username'];?></td>
    <td align="center"><?PHp echo $list[$i]['times'];?></td>
    <td align="center"><?PHp echo $list[$i]['ip'];?></td>
	</tr> 
  <?PHP
  }
  ?>
	</table>
  <?php
    if ($c>$pagesize){
  ?>
			<div class="clear"></div>
			<div class="pagination">
			<?PHP
			echo $db->ThePage_mxsoft($s,$pageindex,$c,$pagesize)
			?>
			</div>
			<div class="clear"></div>
			<div class="height10"></div>
  <?php
	}

  }
  ?>
<div class="clear"></div>
<div class="height10"></div>
<script type="text/javascript" src="/mxsoft/js/jquerys-1.5.1.js"></script>
<script language="javascript">
$(document).ready(function(){  
	$(".table_southidc tr").mouseover(function(){   
	$(this).addClass("list2");}).mouseout(function(){   
	$(this).removeClass("list2");}) //移除该行的class   
	$(".table_southidc tr:even").addClass("list1");   
});   
</script> 

</div>
<?php 
require("../mx_foot.php");
?>
<div class="clear"></div>
<div class="height10"></div>
</body>
</html>
